class UpdateCheckState < ActiveRecord::Migration
  def self.up
    @todos = Todo.find(:all, :conditions=>"check_state is null")
    for todo in @todos do 
	todo.check_state = 0
	todo.update
    end
  end

  def self.down
  end
end
